/**
 * Created by linhaifeng on 2016/10/28.
 */
import Vue from 'vue';
import Vuex from 'vuex';
import user from './modules/user';
import * as actions from './actions'
import * as getters from './getters'
import createLogger from '../assets/libs/logger/logger'
Vue.use(Vuex);

const debug = process.env.NODE_ENV !== 'production'
export default new Vuex.Store({
    actions,
    getters,
    modules: {
        user

    },
    strict: debug,
    plugins: debug ? [createLogger()] : []
})